STEP 4: Now we can change all the stars with only one line of code!

We use the variable star_size to control the radius of all of the stars. If we change the value of the variable, the size of all the stars changes, too!

  • Change the value of star_size to 50.
  • Click Run to see all of your stars change size to 50.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)